package com.fsc.comadapoc1.events
{
    import com.fsc.comadapoc1.entities.Portfolio;
    
    import flash.events.Event;

    public class LoadPortfolioEvent extends Event
    {
        public static const LOAD_PORTFOLIO:String = "loadPortfolio";

		public static const LOAD_COMPLETE:String = "portfolioLoadComplete";

		public static const LOAD_ERROR:String = "portfolioLoadError";

		public function LoadPortfolioEvent(type:String, portfolio:Portfolio=null)
        {
            super(type, true);
			_portfolio = portfolio;
        }

        private var _portfolio:Portfolio;

        public function get portfolio():Portfolio
        {
            return _portfolio;
        }

        override public function clone():Event
        {
            return new LoadPortfolioEvent(type, _portfolio);
        }
    }
}